package Iol;

import java.io.*;

/**
 * description:一个大文件，分成几个小文件块，再组合为大文件
 * author:zcx
 * lenovo
 * 时间：2022.01.20.08.25
 */
public class Io6 {
    public static void main(String[] args) {

    }
    public static void Cf(File f,File f1,File f2,File f3,File f4){
        if (f.isFile()) {
            try {
                int i = 0;
                int length = -1;
                InputStream in=new FileInputStream(f);
                BufferedInputStream bis=new BufferedInputStream(in);
                byte[] bytes=new byte[1024];
                BufferedWriter buf=new BufferedWriter(new FileWriter("t1.txt",true));
                while ((length = in.read(bytes)) != -1){

                    buf.write(bis.read());
                }




            } catch (FileNotFoundException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }
}
